<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ page contentType="text/html;charset=utf-8"%>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <h1>QG_贴吧</h1>
    <h2>个人中心</h2>
    <h3>个人信息</h3>
    <form action="${pageContext.request.contextPath}/modifyMessage" method="post">
        <table>
            <tr>
                <td>用户昵称</td>
                <td>
                    <input type="text" value="" name="nickname"/>
                </td>
            </tr>
            <tr>
                <td>头像</td>
                <td>
                    <input type="text" value="" name="user_face"/>
                </td>
            </tr>
            <tr>
                <td>性别</td>
                <td>
                    <input type="radio" name="user_sex" value="male"/>男
                    <input type="radio" name="user_sex" value="female"/>女
                </td>
            </tr>
            <tr>
                <td>邮箱</td>
                <td>
                    <input type="text" value="" name="user_email"/>
                </td>
            </tr>
            <tr>
                <td>用户级别</td>
                <td>普通用户</td>
            </tr>
             <tr>
                ${modifyError}
            </tr>
            <tr>
                <td>
                    <button type="submit" class="inputButton" value="" >修改</button>
                </td>
                <td>
                    <button type="button" class="inputButton" onclick="Return()">返回</button>
                </td>
            </tr>
        </table>
    </form>

    <script type="text/javascript">
    			function Return(){
    			    alert("修改完成");
    			    window.location.href="Myhome.html";
    			}
    </script>
        <script type="text/javascript">
                function GetRadioValue("user_sex")) {
                var value = "";
                var radio = document.getElementsByName("user_sex");
                for (var i = 0; i < radio.length; i++) {
                    if (radio[i].checked == true) {
                        value = radio[i].value;
                        break;
                    }
                }
                return value;
            }
        </script>
</body>
</html>